package com.alks.function.controller.system;


import com.alks.common.aop.ApiRestController;
import com.alks.common.aop.WebLogger;
import com.alks.entity.data.entity.sys.SysLog;
import com.alks.entity.data.response.ResponseInfo;
import com.alks.function.service.system.SysLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author shiqian
 */
@RestController
@ApiRestController("/sys/log")
@Api(value = "系统日志", tags = "系统日志")
@Slf4j
public class SysLogController {

    @Autowired
	private SysLogService sysLogService;

	/**
	 * 日志分页查询
	 * @return
	 */
	@RequestMapping(value = "getSysLog")
	@WebLogger
	@ApiOperation(value = "系统日志查询", tags = "系统日志")
	public ResponseInfo getSysLog(@RequestBody SysLog sysLog, @RequestParam Integer pageNum, @RequestParam Integer pageSize) {
		return sysLogService.getSysLog(sysLog,pageNum,pageSize);
	}


}